//
//  AssetsTopView.m
//  DBAChain
//
//  Created by Mxionlly on 2018/9/6.
//  Copyright © 2018年 Evan. All rights reserved.
//

#import "AssetsTopView.h"
#import "CommonData.h"

@implementation AssetsTopView


-(void)awakeFromNib
{
    [super awakeFromNib];
    
    UIBezierPath * maskPath = [UIBezierPath bezierPathWithRoundedRect:self.baseView.bounds byRoundingCorners:UIRectCornerTopLeft|UIRectCornerTopRight cornerRadii:CGSizeMake(10, 10)];
    CAShapeLayer * maskLayer = [[CAShapeLayer alloc]init];
    maskLayer.frame = self.baseView.bounds;
    maskLayer.path = maskPath.CGPath;
    self.baseView.layer.mask = maskLayer;
    
    self.lineImageView.image = [UIImage imageNamed:@"icon_assets_line"];
}

+ (AssetsTopView *)getTopView
{
    AssetsTopView *headView = [[[NSBundle mainBundle] loadNibNamed:@"AssetsTopView" owner:nil options:nil] objectAtIndex:0];
    headView.frame = CGRectMake(0, 0, KScreenWidth, 60);
    headView.backgroundColor = COLOR_Background;
    return headView;
}


@end
